<?php
// +----------------------------------------------------------------------
// | Author: 发仔 <i@fazi.me> 
// +----------------------------------------------------------------------

namespace app\unit\controller;

use think\Db;
use think\Cache;
use app\api\model\Company;

class Index extends Base
{
	
    public function index() {
		return $this->out();
	}
	
	
	public function getInfo() {
		
		$CarUse = Db::name('Company')->where('company_id',$this->company_id)->find();
        $data = (new Company())->getUseMoneyByCompany($this->company_id);

        $CarUse['used_quota'] = $data['office_money'];
        $CarUse['used_unit_quota'] = $data['company_money'];
		return $this->apiout($CarUse);
		
	}
}
